projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5a6c94
)
pinctrl: a3700: Fix the issue that gpio controller is registered with wrong node id
author
Ken Ma
<
[email protected]
>
Thu, 22 Jun 2017 09:13:36 +0000
(17:13 +0800)
committer
Stefan Roese
<
[email protected]
>
Fri, 23 Jun 2017 05:09:40 +0000
(07:09 +0200)
In armada_37xx_gpiochip_register, the return value of fdtdec_get_bool
should be true when gpio-controller is found; current codes makes a
wrong inverse return value judgement, this patch fixes it.
Signed-off-by: Ken Ma <
[email protected]
>
Cc: Stefan Roese <
[email protected]
>
Cc: Kostya Porotchkin <
[email protected]
>
Cc: Gregory CLEMENT <
[email protected]
>
Cc: Nadav Haklai <
[email protected]
>
Cc: Wilson Ding <
[email protected]
>
Reviewed-by: Stefan Roese <
[email protected]
>
Signed-off-by: Stefan Roese <
[email protected]
>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
index 2ac66ec325c8991917c144b8d648acc7d4ce8b3d..27165b0007739b04785976e3d25d969076436ca9 100644
(file)
--- a/
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
+++ b/
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
@@
-539,7
+539,7
@@
static int armada_37xx_gpiochip_register(struct udevice *parent,
}
fdt_for_each_subnode(subnode, blob, node) {
- if (
!
fdtdec_get_bool(blob, subnode, "gpio-controller")) {
+ if (fdtdec_get_bool(blob, subnode, "gpio-controller")) {
ret = 0;
break;
}